package com.foreknow.demo14;

import java.util.Scanner;

/**
 * @author shkstart
 * @create 2021-08-03 11:30
 */
public class Testlogin {
    public static void main(String[] args) {
        Conn conn=new Conn();
        boolean iscuess = conn.Connectiontest();
        if(iscuess){
            System.out.println("连接成功");
        }else {
            System.out.println("连接失败");
        }
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入用户名");
        String user = sc.next();
        System.out.println("请输入密码");
        String pass = sc.next();
        boolean islogin1 = conn.islogin(user, pass);
        if (islogin1){
            System.out.println("登录成功");
        }else{
            System.out.println("登录失败");
        }

    }
}
